﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using AesonXamlControls.Interaction.AesonPopup;

namespace AesonXamlControls.Test.Views.AesonPopupContent
{
    /// <summary>
    /// Interaction logic for ChildWindowsContent.xaml
    /// </summary>
    public partial class ChildWindowsContent : UserControl
    {
        public ChildWindowsContent()
        {
            InitializeComponent();
        }

        private void Control_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {

            //TODO: Find a better solution
            ContentControl cc = this.Parent as ContentControl;
            Grid g = cc.Parent as Grid;
            AesonChildWindows w = g.Parent as AesonChildWindows;
            w.Confirm(true);
        }
    }
}
